package com.yu.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.common.utils.PageUtils;
import com.yu.gulimall.member.entity.MemberEntity;
import com.yu.gulimall.member.vo.MemberUserLoginVo;
import com.yu.gulimall.member.vo.MemberUserRegisterVo;
import com.yu.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author yfy
 * @email HeJieLin@gulimall.com
 * @date 2024-06-16 21:31:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberUserRegisterVo vo) throws Exception;

    MemberEntity login(MemberUserLoginVo vo);

    MemberEntity oauthLogin(SocialUser socialUser) throws Exception;

    MemberEntity login(String accessTokenInfo);

    void checkPhoneUnique(String phone) throws Exception;

    void checkUserNameUnique(String userName) throws Exception;
}

